package com.sgcc.system.api.factory;

import com.sgcc.common.core.domain.R;
import com.sgcc.common.core.web.domain.AjaxResult;
import com.sgcc.common.core.web.page.TableDataInfo;
import com.sgcc.system.api.RemoteIscService;
import com.sgcc.system.api.RemoteRoleService;
import com.sgcc.system.api.domain.SysRole;
import feign.hystrix.FallbackFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 用户服务降级处理
 * 
 * @author sgcc
 */
@Component
public class RemoteIscFallbackFactory implements FallbackFactory<RemoteIscService>
{
    private static final Logger log = LoggerFactory.getLogger(RemoteIscFallbackFactory.class);

    @Override
    public RemoteIscService create(Throwable throwable)
    {
        log.error("isc服务调用失败:{}", throwable.getMessage());
        return new RemoteIscService()
        {


			@Override
			public AjaxResult send() {
				return null;
			}

            @Override
            public List<String> getFuncsByParentId(String iscUserid) {
                return null;
            }
        };
    }
}
